package com.itheima.health.dao;

import com.itheima.health.dto.OrderMessageDTO;
import com.itheima.health.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 预约DAO
 */
@Component
@Mapper
public interface OrderDao {

    OrderMessageDTO selectOneOrderMessage(Integer id);


    //根据预约日期计算预约人数
    Integer selectCountOrderNumberByDate(@Param("orderDate") String orderDate, @Param("orderStatus") String orderStatus);

    //获取热门套餐
    List<Map<String, Object>> selectListHotSetmeal();


    void insertOrder(Order order);

    List<Order> selectOrderByMemberId(Integer id);
}
